home *** CD-ROM | disk | FTP | other *** search
- Path: maths.tcd.ie!not-for-mail
- From: dwmalone@maths.tcd.ie (David Malone)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: GCC C++ questions
- Date: 17 Mar 1996 23:27:22 -0000
- Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
- Message-ID: <4ii74q$ss2@hamilton.maths.tcd.ie>
- References: <314c6829@usura.metropolis.nl>
- NNTP-Posting-Host: hamilton.maths.tcd.ie
-
- joskam@usura.metropolis.nl (Jurjen Oskam) writes:
-
- >Hello there,
-
-
- >#include <iostream.h>
-
- >int main()
- >{
- > cout << "Hello!" << endl ;
- >}
-
- >This compiles OK, but the executable is 69KB! A bit too large, IMHO. ;-) I
- >understand that GCC uses ixemul.library, and that there is another library
- >that's better for programs not ported from UN*X, namely libnix.library. So, how
- >do I install libnix.library (the docs say "don't forget to link it")? I don't
- >know how to "link" it.
-
- That is because by using the iostream stuff, you have got the entire
- iostream library, which is nothing to do with either ixemul or libnix,
- its a c++ thing. I remember getting the same shock using printf, which
- is huge, but once you have it you have it, so you could add another 50
-
- cout << "Wheeee!" << endl;
-
- and it shouldn't make too much difference to the size. You could even
- do stuff like printing ints, longs, doubles and the like without
- any -=futher=- library overhead.
-
- I'd add if you are scared of executable sizes then :
-
- 1) c++ is not your language.
- 2) don't use gcc - its got sevral +1MB executable ;)
-
- David
-